/*
 * Name: Minh-Tuan ta
 * Class: PageNotFound.java
 */

package actions;

/*
 * Name: Minh-Tuan ta
 * Class: PageNotFound.java
 */

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class PageNotFound extends Action {

	@Override
	protected String doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		request.setAttribute("pageTitle", "Page Not Found");
		
		return "/WEB-INF/views/content/PageNotFound.jsp";
	}

	@Override
	protected String doPost(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		return "PageNotFound";
	}

	@Override
	protected void setURLMapping() {
		// TODO Auto-generated method stub
		this.urlMapping = "/PageNotFound";
	}

	@Override
	protected void setupPage(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		
	}

}
